package task3;

public class CallPlan extends Plan implements CallInterface{
    private int callDuration;
    private int messages;
//    private double price;

    public CallPlan(int callDuration, int messages, double price) {
        setCallDuration(callDuration);
        setMessages(messages);
        setPrice(price);
    }

    public int getCallDuration() {
        return callDuration;
    }

    public void setCallDuration(int callDuration) {
        this.callDuration = callDuration;
    }

    public int getMessages() {
        return messages;
    }

    public void setMessages(int messages) {
        this.messages = messages;
    }

//    public double getPrice() {
//        return price;
//    }
//
//    public void setPrice(double price) {
//        this.price = price;
//    }

    @Override
    public void show(){
        System.out.println("通话时长：\t" + callDuration);
        System.out.println("短信条数：\t" + messages);
        System.out.println("每月资费\t" + price);
    }

    @Override
    public void call(int callDuration, SimCard simCard) {
        System.out.println("通话套餐类对象实现通话服务接口");
    }
}
